package com.dataeco.api.dto.helper;

import com.dataeco.api.dto.DataecoRoleInfo;
import com.dataeco.api.entity.Roles;


public class DataecoRoleHelper {

    public DataecoRoleInfo convertDataecoRoleToDataecoRoleInfo(Roles dataecoRole){
        DataecoRoleInfo dataecoRoleInfo =new DataecoRoleInfo();
        dataecoRoleInfo.setId(dataecoRole.getId());
        dataecoRoleInfo.setCode(dataecoRole.getCode());
        dataecoRoleInfo.setName(dataecoRole.getName());
        return dataecoRoleInfo;
    }
}
